package com.wanshi.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

@Data
public class OrderItem {

    private String orderId;
    private String prodId;
    private Integer buynum;

    @TableField(exist = false)
    private Products products;


    public OrderItem() {
    }

    public OrderItem(String orderId, String prodId, Integer buynum) {
        this.orderId = orderId;
        this.prodId = prodId;
        this.buynum = buynum;

    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId;
    }

    public Integer getBuynum() {
        return buynum;
    }

    public void setBuynum(Integer buynum) {
        this.buynum = buynum;
    }

    public Products getProducts() {
        return products;
    }

    public void setProducts(Products products) {
        this.products = products;
    }
}
